module carryRippleAdder(in1,in2,cin,cout,out);
	input [3:0] in1;
	input [3:0] in2;
	input cin;
	output reg [3:0] out;
	output reg cout;

always@* begin
	out[0] = in1[0] ^ in2[0] ^ cin;
	if((in1[0]&in2[0]) | (in2[0]&cin) | (in1[0]&cin))
		cout = 1;
	else
		cout = 0;
	out[1] = in1[1] ^ in2[1] ^ cout;
	if((in1[1]&in2[1]) | (in2[1]&cout) | (in1[1]&cout))
		cout = 1;
	else
		cout = 0;
	out[2] = in1[2] ^ in2[2] ^ cout;
	if((in1[2]&in2[2]) | (in2[2]&cout) | (in1[2]&cout))
		cout = 1;
	else
		cout = 0;
	out[3] = in1[3] ^ in2[3] ^ cout;
	if((in1[3]&in2[3]) | (in2[3]&cout) | (in1[3]&cout))
		cout = 1;
	else
		cout = 0;	
end
endmodule